﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMassage.Models.HomeViewModel>" %>

<%@ Import Namespace="WebMassage.Models" %>
<%@ Import Namespace="WebMassage.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Massage - Trang chủ
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="/Scripts/home.js" type="text/javascript"></script>
    <link href="/Content/CSS/Black/dialog.css" rel="stylesheet" type="text/css" />
    <div id="maincontent">
        <div id="slide-holder">
            <div id="slider" class="nivoSlider">
                   <%
                        int i = 0;
                        foreach (string img in Model.SlidePics)
                       { %>
                           <a href="">
                           <img id="slide-img-<%= i + 1 %>" src="<%= img %>" title="#htmlcaption" alt="" />
                             </a>
                      <%  
                          i++;
                        } 
                        %>                   
            </div>
            <div id="htmlcaption" class="nivo-html-caption">
                <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
            </div>
            <!--content featured gallery here -->
        </div>
    </div>
    <div id="topright">
        <div id="trtitle">
            <img src="/Content/Images/Black/tintuc_bar.png" alt="Tin Tức" title="Tin Tức" /></div>
        <!-- Vung tin tuc -->
        <ul id="News">
            <%  foreach (New item in Model.News)
                {
                    Response.Write("<li><a href='/News/Details/?id=" + item.NewID + "' title=" + item.Title + ">" + item.Title + "</a></li>\n");
                }    
            %>
        </ul>
        <!-- Vung tin tuc -->
        <a href="/News/Index/">
            <img class="more" src="/Content/Images/Black/MORE.png" alt="" /></a>
    </div>
    <div id="bottomright">
        <div id="brtitle">
            <img src="/Content/Images/Black/ktv_bar.png" alt="Kỹ thuật viên" title="Kỹ thuật viên" />
        </div>
        <!-- Vung ky thuat vien-->
        <ul>
            <%
                foreach (KTVPic item in Model.KTVPics)
                {
                    string str = "<li><a href='/KTV/KTVShow/?id=" + item.KTVId + "' >";
                    str += "<img src='" + item.PictureUrl + "'";
                    str += " class='ktv'";
                    str += " alt='" + item.Note + "'";
                    str += " title='" + item.Note + "'";
                    str += " /></a></li>";
                    Response.Write(str);
                }
            %>
        </ul>
        <!-- Vung ky thuat vien -->
        <a href="/KTV/Index">
            <img class="more" src="/Content/Images/Black/MORE.png" alt="" /></a>
    </div>
</asp:Content>
